package cc.comac.mom.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import cc.comac.mom.api.QualityAsrCheckCorrigendumExplainService;
import cc.comac.mom.bean.QualityAsrCheckCorrigendumExplain;
import cc.comac.mom.datahandlers.entity.QualityAsrCheckCorrigendumExplainDataHandler;
import cc.comac.mom.util.ResultBean;
@Service
@RestController
public class QualityAsrCheckCorrigendumExplainServiceImpl implements QualityAsrCheckCorrigendumExplainService{

	@Autowired
	private QualityAsrCheckCorrigendumExplainDataHandler qualityAsrCheckCorrigendumExplainDataHandler;

	@Override
	public ResultBean saveCheckCorrigendumExplainUpload(@RequestBody  QualityAsrCheckCorrigendumExplain qualityAsrCheckCorrigendumExplain) {
		ResultBean saveCheckCorrigendumExplainUpload;
		try {
			saveCheckCorrigendumExplainUpload = qualityAsrCheckCorrigendumExplainDataHandler.saveCheckCorrigendumExplainUpload(qualityAsrCheckCorrigendumExplain);
		} catch (Exception e) {
			e.printStackTrace();
			throw new RuntimeException(e);
		}
		return saveCheckCorrigendumExplainUpload;
	}

	@Override
	public QualityAsrCheckCorrigendumExplain selectByCorrigendumExplainId(long corrigendumExplainId) {
		QualityAsrCheckCorrigendumExplain selectByCorrigendumExplainId = qualityAsrCheckCorrigendumExplainDataHandler.selectByCorrigendumExplainId(corrigendumExplainId);
		return selectByCorrigendumExplainId;
	}
}
